package com.bz.order.feign;

import com.bz.order.feign.fallback.CommonRedisFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 命令规范: 服务名称 + FeignClient
 */
@FeignClient(value = "common-redis",fallbackFactory = CommonRedisFeignClientFallbackFactory.class)
public interface CommonRedisFeignClient {

    //--------------------------- /redis/order --------------------------
    /**
     * 生成订单ID
     * @return
     */
    @GetMapping("/redis/order/selectOrderId")
    Long selectOrderId();
}
